package HomeWork1;

import java.util.Comparator;


public class ComparatorStudent implements Comparator<Student>,java.io.Serializable {

    @Override
    public int compare(Student o1,Student o2) {
        if (o1.getHeight()< o2.getHeight())
            return 1;
        else if (o1.getHeight() == o2.getHeight())
            return 0;
        else
            return 1;
    }
}
